package com.maimao.cart;

import cn.hutool.core.lang.Assert;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;

/**
 * @author MaoLin Wang
 * @date 2021/1/8 9:35 下午
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.maimao.core"})
@ComponentScan(basePackages = {"com.maimao.api"})
@ComponentScan(basePackages = {"com.maimao.mg"})
@ComponentScan(basePackages = {"com.maimao.cart"})
@ComponentScan(basePackages = {"com.maimao.message.kafka"})
@MapperScan(basePackages = {"com.maimao.goods.mapper"})
@EnableMongoRepositories(basePackages = "com.maimao.mg.repository")
@EnableDiscoveryClient
@EnableFeignClients
@RefreshScope
public class CartApplication {
    public static void main(String[] args) {
        SpringApplication.run(CartApplication.class, args);

    }
}
